package com.hu.zhcc.shiro.service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hu.zhcc.shiro.dao.TJ_TMemberMapper;
import com.hu.zhcc.shiro.dao.Tj_TMemberInfoMapper;
import com.hu.zhcc.shiro.entity.tj.TMember;
import com.hu.zhcc.shiro.entity.tj.TMemberInfo;
import com.hu.zhcc.shiro.entity.tj.VipdaTj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 会员详情表 服务实现类
 * </p>
 *
 * @author tj
 * @since 2021-06-15
 */
@Service
public class Tj_TMemberInfoServiceImpl extends ServiceImpl<Tj_TMemberInfoMapper, TMemberInfo> implements Tj_TMemberInfoService {
    @Autowired
    private Tj_TMemberInfoMapper tj_tMemberInfoMapper;
    @Autowired
    private TJ_TMemberMapper tj_tMemberMapper;//会员表
    @Override
    public int updInfo(TMemberInfo tMemberInfo) {
        return tj_tMemberInfoMapper.updInfo(tMemberInfo);
    }

    @Override
    public TMemberInfo queryByIdTmemberinfo(int id) {
        return tj_tMemberInfoMapper.queryByIdTmemberinfo(id);
    }

    @Override
    public int insertinfo(TMemberInfo record) {
        record.settMemberId(tj_tMemberMapper.getMysqlId());
        return tj_tMemberInfoMapper.insertinfo(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tj_tMemberInfoMapper.deleteByPrimaryKey(id);
    }
}
